﻿const path = require('path');

function getMessages (req, res)  {
    res.render('messages', {
        title: 'Messages to My Friends',
        friend: 'Elon Must',
    })

    //res.sendFile(path.join(__dirname,'..','public','images','banner1.jpg'));
    //res.send("<ul><li>Hello nodejs</li></ul>")
};

function postMessages (req, res) {
    console.log('Updating messages...');
}

module.exports = { getMessages, postMessages };